package com.cblz.bd.server.core.service;

import com.cblz.bd.common.core.entity.BaAdminGroupAccess;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author yanjieping
* @description 针对表【ba_admin_group_access(管理权限分组表)】的数据库操作Service
* @createDate 2022-11-04 15:09:53
*/
public interface BaAdminGroupAccessService extends IService<BaAdminGroupAccess> {

    /**
     * 根据后台管理员ID获取对应的用户组
     * @param baAdminId
     * @return
     */
    int[] getGroupIdsByBaAdminId(Integer baAdminId);

    void add(Integer uid,List<Integer> group_arr);

    void delete(Integer uid);
}
